package com.ruoyi.eam.doman;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 资产变更对象 eam_chg_h
 *
 * @author ruoyi
 * @date 2024-07-01
 */
public class EamChgH extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 变更id */
    private Long alterationId;

    /** 变更单号 */
    @Excel(name = "变更单号")
    private String alterationOdd;

    /** 单据状态 */
    @Excel(name = "单据状态")
    private Long receiptsStatus;

    /** 变更内容 */
    @Excel(name = "变更内容")
    private String alteraContent;

    /** 资产类型 */
    @Excel(name = "资产类型")
    private Long assetType;

    /** 存放位置 */
    @Excel(name = "存放位置")
    private Long locationId;

    /** 使用部门 */
    @Excel(name = "使用部门")
    private Long useDept;

    /** 使用人员 */
    @Excel(name = "使用人员")
    private Long usePerson;

    /** 审核原因 */
    @Excel(name = "审核原因")
    private String auditReason;

    /** 制单人 */
    @Excel(name = "制单人")
    private Long prepared;


    @Excel(name = "部门名称")
    private String deptName;

    /** 制单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "制单时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date preparedDate;

    /** 审核人 */
    @Excel(name = "审核人")
    private Long auditPerson;


    /** 创建人 */
    @Excel(name = "创建人")
    private Long creator;

    /** 1.正常 2.删除 */
    @Excel(name = "1.正常 2.删除")
    private Long isdel;

    @Excel(name = "资产类别名称")
    private String typeName;

    @Excel(name = "制单人")
    private String preparedName;

    @Excel(name = "制单人")
    private String auditName;

    @Excel(name = "变更资产集合")
    private List<EamAsset> chgDS;

    @Excel(name = "制单人")
    private String auditDeptName;

    private String preparedDeptName;

    public String getPreparedDeptName() {
        return preparedDeptName;
    }

    public void setPreparedDeptName(String preparedDeptName) {
        this.preparedDeptName = preparedDeptName;
    }

    public String getAuditDeptName() {
        return auditDeptName;
    }

    public void setAuditDeptName(String auditDeptName) {
        this.auditDeptName = auditDeptName;
    }

    public String getAuditName() {
        return auditName;
    }

    public void setAuditName(String auditName) {
        this.auditName = auditName;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public List<EamAsset> getChgDS() {
        return chgDS;
    }

    public void setChgDS(List<EamAsset> chgDS) {
        this.chgDS = chgDS;
    }

    public String getPreparedName() {
        return preparedName;
    }

    public void setPreparedName(String preparedName) {
        this.preparedName = preparedName;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public void setAlterationId(Long alterationId)
    {
        this.alterationId = alterationId;
    }

    public Long getAlterationId()
    {
        return alterationId;
    }
    public void setAlterationOdd(String alterationOdd)
    {
        this.alterationOdd = alterationOdd;
    }

    public String getAlterationOdd()
    {
        return alterationOdd;
    }
    public void setReceiptsStatus(Long receiptsStatus)
    {
        this.receiptsStatus = receiptsStatus;
    }

    public Long getReceiptsStatus()
    {
        return receiptsStatus;
    }
    public void setAlteraContent(String alteraContent)
    {
        this.alteraContent = alteraContent;
    }

    public String getAlteraContent()
    {
        return alteraContent;
    }
    public void setAssetType(Long assetType)
    {
        this.assetType = assetType;
    }

    public Long getAssetType()
    {
        return assetType;
    }
    public void setLocationId(Long locationId)
    {
        this.locationId = locationId;
    }

    public Long getLocationId()
    {
        return locationId;
    }
    public void setUseDept(Long useDept)
    {
        this.useDept = useDept;
    }

    public Long getUseDept()
    {
        return useDept;
    }
    public void setUsePerson(Long usePerson)
    {
        this.usePerson = usePerson;
    }

    public Long getUsePerson()
    {
        return usePerson;
    }
    public void setAuditReason(String auditReason)
    {
        this.auditReason = auditReason;
    }

    public String getAuditReason()
    {
        return auditReason;
    }
    public void setPrepared(Long prepared)
    {
        this.prepared = prepared;
    }

    public Long getPrepared()
    {
        return prepared;
    }
    public void setPreparedDate(Date preparedDate)
    {
        this.preparedDate = preparedDate;
    }

    public Date getPreparedDate()
    {
        return preparedDate;
    }
    public void setAuditPerson(Long auditPerson)
    {
        this.auditPerson = auditPerson;
    }

    public Long getAuditPerson()
    {
        return auditPerson;
    }
    public void setCreator(Long creator)
    {
        this.creator = creator;
    }

    public Long getCreator()
    {
        return creator;
    }
    public void setIsdel(Long isdel)
    {
        this.isdel = isdel;
    }

    public Long getIsdel()
    {
        return isdel;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("alterationId", getAlterationId())
            .append("alterationOdd", getAlterationOdd())
            .append("receiptsStatus", getReceiptsStatus())
            .append("alteraContent", getAlteraContent())
            .append("assetType", getAssetType())
            .append("locationId", getLocationId())
            .append("useDept", getUseDept())
            .append("usePerson", getUsePerson())
            .append("auditReason", getAuditReason())
            .append("prepared", getPrepared())
            .append("preparedDate", getPreparedDate())
            .append("remark", getRemark())
            .append("auditPerson", getAuditPerson())
            .append("creator", getCreator())
            .append("createTime", getCreateTime())
            .append("isdel", getIsdel())
            .toString();
    }
}
